package EveryDayPractice;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;

public class Practice11 {
     public static void main(String[] args) {
         int a=1;
         int b=2;
         int c=3;
         int d=4;
         ArrayList<String> list=new ArrayList<>();
         for(int i=a;i<=d;i++)
         {
              for (int j=a;j<=d;j++)
              {
                 for(int k=a;k<=d;k++)
                 {
                    int x=i+k*10*10+j*10;
                    list.add(x+"");
                      System.out.println(x+" ");
                 }
              }
         }
         System.out.println(list);
      ListIterator<String> li=list.listIterator();
         while(li.hasNext())
         {
             String s=li.next();
             if(s.charAt(0)==s.charAt(1)||s.charAt(0)==s.charAt(2)||s.charAt(1)==s.charAt(2))
             {
                 li.remove();
             }
         }
         System.out.println(list);
     }
}
